import { BaseHttpClient } from "@/utils/request";

const httpClient = new BaseHttpClient("/codeGen");

// 生成代码
export const generateCode = (data: any) => {
  return httpClient.post<any>("/generate", data);
};

// 预览代码
export const previewCode = (params: any) => {
  return httpClient.post<any>("/preview", params);
};